/**
 * description
 * <p>fill description</p>
 * @author zido
 * @since 2017/6/3 0003
 */
import CenterLayout from '../layouts/CenterLayout'
import CounterRouter from './Counter'
import BusinessManagement from './BusinessManagement'
import PageNotFount from './PageNotFount'

export const createRoutes = (store) => ({
  path: '/',
  component: CenterLayout,
  breadcrumbName: '首页',
  indexRoute: {
    onEnter(nextState, replace) {
      replace('/business')
    }
  },
  childRoutes: [
    BusinessManagement(store),
    CounterRouter(store),
    PageNotFount,
  ]
})
export default createRoutes